<!DOCTYPE html>
<html lang="ch">
<head>
    <title></title>
    <script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
    <!-- 总结：

    -->
    <div id="demo">
        <input type="text" v-model="firstName"><br>
        <input type="text" v-model="lastName"><br>
        全名：<span>{{firstName}}-{{lastName}}</span>
    </div>
    <script type="text/javascript">
        Vue.config.productionTip = false //关闭生产提示
        new Vue({
            el:"#demo",
            data:{
                firstName:"zhang",
                lastName:"san"
            }
        })
    </script>
</body>
</html>